package com.ljx.rabbit.context;

public class BaseContext {
    private static final ThreadLocal<Long> userThreadLocal = new ThreadLocal<>();

    public static void setCurrentId(Long id) {
        userThreadLocal.set(id);
    }

    public static Long getCurrentId() {
        return userThreadLocal.get();
    }

    public static void removeCurrentId() {
        userThreadLocal.remove();
    }
}
